package com.suma.boot.swagger;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author chenqi
 * @time 2017/8/23
 */
@ConfigurationProperties("swagger")
public class Swagger2Properties {

	/* 标题 */
	private String title = "";

	/* 描述 */
	private String description = "";

	/* 版本 */
	private String version = "";

	/* 分组 */
	private String group = "";

	/* 包扫描路径 */
	private String basePackage = "";

	/* 许可证 */
	private String license = "";

	/* 许可证URL */
	private String licenseUrl = "";

	/* 服务条款URL */
	private String termsOfServiceUrl = "";

	/* 默认为首页 */
	private Boolean asHomePage = false;

	/* 联系方式 */
	private Contact contact = new Contact();

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getBasePackage() {
		return basePackage;
	}

	public void setBasePackage(String basePackage) {
		this.basePackage = basePackage;
	}

	public String getLicense() {
		return license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	public String getLicenseUrl() {
		return licenseUrl;
	}

	public void setLicenseUrl(String licenseUrl) {
		this.licenseUrl = licenseUrl;
	}

	public String getTermsOfServiceUrl() {
		return termsOfServiceUrl;
	}

	public void setTermsOfServiceUrl(String termsOfServiceUrl) {
		this.termsOfServiceUrl = termsOfServiceUrl;
	}

	public Boolean getAsHomePage() {
		return asHomePage;
	}

	public void setAsHomePage(Boolean asHomePage) {
		this.asHomePage = asHomePage;
	}

	public Contact getContact() {
		return contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}

	public class Contact {

		/* 联系人 */
		private String name = "";

		/* 联系人url */
		private String url = "";

		/* 邮箱 */
		private String email = "";

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getUrl() {
			return url;
		}

		public void setUrl(String url) {
			this.url = url;
		}

		public String getEmail() {
			return email;
		}

		public void setEmail(String email) {
			this.email = email;
		}
	}
}
